import request from '@/utils/request'

// 平台配置管理
export const getConfigList = (params) => {
    return request({
        url: 'platformConfig/getConfigList',
        method: 'get',
        params
    })
}

export const getPlatformConfig = (params) => {
    return request({
        url: 'platformConfig/getPlatformConfig',
        method: 'get',
        params
    })
}

export const saveConfig = (data) => {
    return request({
        url: 'platformConfig/saveConfig',
        method: 'post',
        data
    })
}

export const deleteConfig = (data) => {
    return request({
        url: 'platformConfig/deleteConfig',
        method: 'post',
        data
    })
}

export const updateConfigStatus = (data) => {
    return request({
        url: 'platformConfig/updateStatus',
        method: 'post',
        data
    })
}

export const getPlatformTypes = () => {
    return request({
        url: 'platformConfig/getPlatformTypes',
        method: 'get'
    })
}